package com.bwie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bwie.domain.TbRepair;
import com.bwie.vo.DataListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2024/11/5 9:03
 */

@Mapper
public interface RepairMapper extends BaseMapper<TbRepair> {

    List<DataListVo> getRepairCountByWeek();

    List<DataListVo> getRepairStatusByMonth(@Param("status") Integer status);

    List<DataListVo> getRepairStatusByArea(@Param("status") Integer status);

    Page<TbRepair> getRepairList(Page<TbRepair> page,
                                 @Param("userId") Integer userId,
                                 @Param("keyWord") String keyWord,
                                 @Param("typeId") Integer typeId,
                                 @Param("status") Integer status);
}
